package com.ricohgag.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ricohgag.entity.AdminUser;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 肖晖
 * @since 2018-08-25
 */
public interface AdminUserService extends IService<AdminUser> {
    public AdminUser selectByName(String userName);
    public AdminUser checkAdminUser(String userName, String password);

    public IPage<AdminUser> selectAdminUserPage(String name, Page<AdminUser> page, String startDate, String endDate) throws Exception;

    public AdminUser selectAdminUserOne(Integer id) throws Exception;

    public int updateAdminUser(AdminUser shopAd) throws Exception;

    public int insertAdminUser(AdminUser shopAd) throws Exception;

    public int deleteAdminUser(int id) throws Exception;

}
